<template>
  <section>
      <XdoForm ref="formInline" class="dc-form" :model="searchParams" label-position="right" :label-width="100" inline>
                <XdoFormItem prop="emsListNo" label="企业内部编号" xid="c_head_search_form_item">
                <XdoIInput type="text" v-model="searchParams.emsListNo" xid="s_emsListNo"></XdoIInput>
                </XdoFormItem>
                <XdoFormItem prop="listNo" label="核注清单编号" xid="c_head_search_form_item">
                <XdoIInput type="text" v-model="searchParams.listNo" xid="s_listNo"></XdoIInput>
                </XdoFormItem>
                <XdoFormItem prop="agentCodeCiq" label="报关单申报单位代码(商检)" xid="c_head_search_form_item">
                <xdo-select  v-model="searchParams.agentCodeCiq" filterable transfer clearable  :disabled="showDisable" :options="this.agentCodeCiqList" xid="s_agentCodeCiq"></xdo-select>
                </XdoFormItem>
                <XdoFormItem prop="classifyType" label="清单归类" xid="c_head_search_form_item">
                <xdo-select  v-model="searchParams.classifyType" filterable transfer clearable  :disabled="showDisable" :options="this.classifyTypeList" xid="s_classifyType"></xdo-select>
                </XdoFormItem>
                <XdoFormItem prop="declareDate" label="清单申报日期" xid="c_head_search_form_item">
                <XdoRow xid="s_declareDate">
          <XdoCol span="11">
              <XdoDatePicker type="date" format="yyyy-MM-dd" :value="searchParams.declareDateFrom" @on-change="searchParams.declareDateFrom=$event"></XdoDatePicker>
           </XdoCol>
          <XdoCol span="2" style="text-align: center">-</XdoCol>
          <XdoCol span="11">
              <XdoDatePicker type="date" format="yyyy-MM-dd" :value="searchParams.declareDateTo ? searchParams.declareDateTo.slice(0, 10) : searchParams.declareDateTo" @on-change="searchParams.declareDateTo=($event === '' ? $event : ($event + ' 23:59:59'))"></XdoDatePicker>
          </XdoCol>
        </XdoRow>
                </XdoFormItem>
                <XdoFormItem prop="entryDeclareDate" label="报关单申报日期" xid="c_head_search_form_item">
                <XdoRow xid="s_entryDeclareDate">
          <XdoCol span="11">
              <XdoDatePicker type="date" format="yyyy-MM-dd" :value="searchParams.entryDeclareDateFrom" @on-change="searchParams.entryDeclareDateFrom=$event"></XdoDatePicker>
           </XdoCol>
          <XdoCol span="2" style="text-align: center">-</XdoCol>
          <XdoCol span="11">
              <XdoDatePicker type="date" format="yyyy-MM-dd" :value="searchParams.entryDeclareDateTo ? searchParams.entryDeclareDateTo.slice(0, 10) : searchParams.entryDeclareDateTo" @on-change="searchParams.entryDeclareDateTo=($event === '' ? $event : ($event + ' 23:59:59'))"></XdoDatePicker>
          </XdoCol>
        </XdoRow>
                </XdoFormItem>
                <XdoFormItem prop="entryNo" label="报关单编号" xid="c_head_search_form_item">
                <XdoIInput type="text" v-model="searchParams.entryNo" xid="s_entryNo"></XdoIInput>
                </XdoFormItem>
                <XdoFormItem prop="entryStatus" label="报关状态" xid="c_head_search_form_item">
                <xdo-select  v-model="searchParams.entryStatus" filterable transfer clearable  :disabled="showDisable" :options="this.entryStatusList" dataValue="code" dataLabel="name" xid="s_entryStatus"></xdo-select>
                </XdoFormItem>
                <XdoFormItem prop="inputDate" label="录入日期" xid="c_head_search_form_item">
                <XdoRow xid="s_inputDate">
          <XdoCol span="11">
              <XdoDatePicker type="date" format="yyyy-MM-dd" :value="searchParams.inputDateFrom" @on-change="searchParams.inputDateFrom=$event"></XdoDatePicker>
           </XdoCol>
          <XdoCol span="2" style="text-align: center">-</XdoCol>
          <XdoCol span="11">
              <XdoDatePicker type="date" format="yyyy-MM-dd" :value="searchParams.inputDateTo ? searchParams.inputDateTo.slice(0, 10) : searchParams.inputDateTo" @on-change="searchParams.inputDateTo=($event === '' ? $event : ($event + ' 23:59:59'))"></XdoDatePicker>
          </XdoCol>
        </XdoRow>
                </XdoFormItem>
                <XdoFormItem prop="note" label="备注" xid="c_head_search_form_item">
                <XdoIInput type="text" v-model="searchParams.note" xid="s_note"></XdoIInput>
                </XdoFormItem>
                <XdoFormItem prop="sendUser" label="清单申报人" xid="c_head_search_form_item">
                <XdoIInput type="text" v-model="searchParams.sendUser" xid="s_sendUser"></XdoIInput>
                </XdoFormItem>
                <XdoFormItem prop="seqNo" label="报关单统一编号" xid="c_head_search_form_item">
                <XdoIInput type="text" v-model="searchParams.seqNo" xid="s_seqNo"></XdoIInput>
                </XdoFormItem>
                <XdoFormItem prop="status" label="清单状态" xid="c_head_search_form_item">
                <xdo-select  v-model="searchParams.status" filterable transfer clearable  :disabled="showDisable" :options="this.statusList" dataValue="code" dataLabel="name" xid="s_status"></xdo-select>
                </XdoFormItem>
                <XdoFormItem prop="tradeMode" label="监管方式" xid="c_head_search_form_item">
                <xdo-select v-model="searchParams.tradeMode" :asyncOptions="pcodeList" :meta="pcode.trade" :optionLabelRender="pcodeRender" xid="s_tradeMode"></xdo-select>
                </XdoFormItem>
                <XdoFormItem prop="trafMode" label="运输方式" xid="c_head_search_form_item">
                <xdo-select v-model="searchParams.trafMode" :asyncOptions="pcodeList" :meta="pcode.transf" :optionLabelRender="pcodeRender" xid="s_trafMode"></xdo-select>
                </XdoFormItem>
                <XdoFormItem prop="updateUser" label="录入人" xid="c_head_search_form_item">
                <XdoIInput type="text" v-model="searchParams.updateUser" xid="s_updateUser"></XdoIInput>
                </XdoFormItem>
                <XdoFormItem prop="vrfdedMark" label="核扣标志" xid="c_head_search_form_item">
                <xdo-select  v-model="searchParams.vrfdedMark" filterable transfer clearable  :disabled="showDisable" :options="this.vrfdedMarkList" dataValue="code" dataLabel="name" xid="s_vrfdedMark"></xdo-select>
                </XdoFormItem>
    </XdoForm>
  </section>
</template>
<script>
  import { jx_bill_testUri } from '@/api'
  import store from '@/store'
  export default {
    name: 'DcBillHeadXwtListSearch',
    data() {
      return {
        searchParams: {
                emsListNo: '',
                listNo: '',
                agentCodeCiq: '',
                classifyType: '',
                declareDate: '',
                entryDeclareDate: '',
                entryNo: '',
                entryStatus: '',
                inputDate: '',
                note: '',
                sendUser: '',
                seqNo: '',
                status: '',
                tradeMode: '',
                trafMode: '',
                updateUser: '',
                vrfdedMark: '',
        },
        agentCodeCiqList: [],
        classifyTypeList: [],
        entryStatusList: [],
        statusList: [],
        vrfdedMarkList: [],
      }
    },
    mounted(){
      this.$http.post(jx_bill_testUri.xwManageHeadUrl.dcBillHeadXwt.getStatus).then(res => {//清单
        if (res.data.success) {
          store.state.status=res.data.data;
          this.statusList=res.data.data;
        }
      }, () => {});
      this.$http.post(jx_bill_testUri.xwManageHeadUrl.dcBillHeadXwt.getentryStatus).then(res => {//报关单
        if (res.data.success) {
          store.state.entryStatus=res.data.data;
          this.entryStatusList=res.data.data;
        }
      }, () => {});
      this.$http.post(jx_bill_testUri.xwManageHeadUrl.dcBillHeadXwt.getVrfdedMark).then(res => {//核扣
        if (res.data.success) {
          store.state.vrfdedMarkList=res.data.data;
          this.vrfdedMarkList=res.data.data;
        }
      }, () => {});
    },
    methods: {
    }
  }
</script>
<style scoped>
</style>
